<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]

    <script type="text/javascript">
        var grid;
        function f_export_loan(){
            $("#exportForm").submit();
        }

        function f_change(id){
            top.f_addTab(null, '修改客服', base+'/admin/member/service.aspx?id='+id);
        }
        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [

                    {display: '用户id', name: 'id', align: 'center', width: 200 },
                    {display: '用户名', name: 'user_name', align: 'center', width: 100 },
                    {display: '名字', name: 'realName', align: 'center', width: 120 },
                    {display: '认证邮箱', name: 'email', align: 'center', width: 100 },
                    {display: '邀请人', name: 'ru_user_name', align: 'center', width: 100 },
                    {display: '给邀请人产生收益', name: 'awardforInviter', align: 'center', width: 100 },
                    {display: '注册时间', name: 'add_time', align: 'center', width: 100,isdate:"true" },
                    {display: '客服名字', name: 'kefuname', align: 'center', width: 100 },
                    {display: '更换客服', name: 'kefuname', align: 'center', width: 100,
                        render: function(row){

                            var html = '<input value="选择" type="button" onclick="f_change('+row.id+')">';
                            return html;

                        }
                    }
                ],  pageSize:20, url: 'queryData.aspx?borrowId=${borrowId}',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });


            $(".l-toolbar").ligerToolBar({ items: [


                { text: '导出', click: f_export_loan }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });

    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">
            <form id="exportForm" method="post" action="${path}/admin/member/exportCustomerList.aspx">
               <span>
					用户id：<input type="text"   name="userId" />
				</span>
                <span>
					用户名： <input type="text" name="userName"/>
				</span>
 <span>
					Email： <input type="text" name="email"/>
				</span>
 <span>
					手机号码：  <input type="text"
                                  name="mobilePhone"
                                 />
				</span>
                 <span>
					所属客服：  <input type="text"
                                  name="kefuname"
                                 />
				</span>
                时间
                <input type="text" id="begin_date" name="begin_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                -
                <input type="text" id="endDate" name="end_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                <input type="button" class="button" value="搜索" id="search"/>
                <a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>


            </form>
        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>